package com.demo.annotations;

import java.lang.annotation.*;
import java.util.concurrent.TimeUnit;

import static java.util.concurrent.TimeUnit.SECONDS;

/**
 * @author KingYan
 * @date 2024/6/18
 * @apiNote
 */
@Target({ElementType.METHOD, ElementType.PARAMETER, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @interface RequestLock {

	String prefix() default "RequestLock:";

	long expire() default 5;

	TimeUnit timeUnit() default SECONDS;

	String delimiter() default "&";
}
